package com.carbon.system.service.impl;

import com.carbon.common.service.BaseServiceImpl;
import com.carbon.system.entity.CarbonProject;
import com.carbon.system.mapper.CarbonProjectMapper;
import com.carbon.system.service.CarbonProjectService;
import lombok.extern.slf4j.Slf4j;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;


/**
 * <p>
 * 碳文章 服务实现类
 * </p>
 *
 * @author Li Jun
 * @since 2021-08-01
 */
@Slf4j
@Service
@Transactional(rollbackFor = Exception.class)
public class CarbonProjectServiceImpl extends BaseServiceImpl<CarbonProjectMapper, CarbonProject> implements CarbonProjectService {

    @Autowired
    CarbonProjectMapper carbonProjectMapper;

    @Override
    public void updateInitiationDate(@Param("date") String date, Long id) {
        carbonProjectMapper.updateInitiationDate(date,id);
    }
}
